package com.kgdev.cweb.resmng.i18n;

import java.util.Enumeration;
import java.util.HashMap;
import java.util.Properties;
import java.util.ResourceBundle;

public class MYSQLTextResourceBundle extends ResourceBundle {

	private Properties properties;

	public MYSQLTextResourceBundle(HashMap<String, String> input) {
		properties = new Properties();
		properties.putAll(input);
	}

	@SuppressWarnings("unchecked")
	@Override
	public Enumeration<String> getKeys() {
		return (Enumeration<String>) this.properties.propertyNames();
	}

	@Override
	protected Object handleGetObject(String key) {
		return properties.getProperty(key);
	}

}
